package com.woniuxy.test;

import com.woniuxy.factory.BeanFactory;
import com.woniuxy.person.Person;

public class test {
    public static void main(String[] args) {
        BeanFactory factory = new BeanFactory();
        Person chinese =(Person) factory.getBean("chinese");
        Person chinese1=(Person) factory.getBean("chinese");
        chinese.play();
        System.out.println(chinese);
        System.out.println(chinese1);
    }
}
